package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.List;

/**
 * 班级实体类
 */
@TableName("c_class")
public class ClassBean {
    @TableId(value = "pk_cId", type = IdType.AUTO)
    //班级id编号
    private int id;
    //班级名称
    @TableField("c_name")
    private String nameClass;
    //开班时间
    @TableField("c_date")
    private LocalDate date;
    //带班老师
    @TableField("c_teacher")
    private String teacher;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNameClass() {
        return nameClass;
    }

    public void setNameClass(String nameClass) {
        this.nameClass = nameClass;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public ClassBean() {
    }

    public ClassBean( String nameClass, LocalDate date, String teacher) {
        this.nameClass = nameClass;
        this.date = date;
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "id=" + id +
                ", nameClass='" + nameClass + '\'' +
                ", date=" + date +
                ", teacher='" + teacher + '\'' +
                '}';
    }
}
